﻿<UserControl x:Class="LiveTiss.Guias.UserControls.GuiaHonorarioIndividualContratadoExecutante"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:uc="clr-namespace:LiveTiss.Guias.UserControls"
    xmlns:converter="clr-namespace:LiveTiss.Classes.TypeConverter"
    mc:Ignorable="d" Width="910" x:Name="ucContratado">
    <UserControl.Resources>
        <converter:EnumConverter x:Key="enumConverter" />
    </UserControl.Resources>
    <Grid x:Name="Agrupamento" Margin="0,19,0,0" VerticalAlignment="Top">
        <Rectangle x:Name="Contorno" RadiusY="6" RadiusX="6" Stroke="#4D898989"/>
        <TextBlock x:Name="Titulo_Agrupamento" TextWrapping="Wrap" Text="Dados do Contratado Executante" Margin="10,10,8,0" VerticalAlignment="Top" FontFamily="Segoe UI Semibold" FontSize="16"/>
        <StackPanel x:Name="Conteudo_Agrupamento" Margin="12,44,8,0">
            <uc:Contratado Value="{Binding Path=Value.Contratado, ElementName=ucContratado, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
            <uc:ProfissionalExecutante Value="{Binding Path=Value.identificacaoProfissional, ElementName=ucContratado, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
            <Grid Height="53" Margin="0,0,6,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.024*"/>
                    <ColumnDefinition Width="0.976*"/>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                    <TextBlock TextWrapping="Wrap" Text="Posição Profissional:" FontFamily="Segoe UI" FontSize="13.333"/>
                    <ComboBox Width="180" Margin="0,6,0,0" SelectedValue="Key" DisplayMemberPath="Value" HorizontalAlignment="Left" 
                          ItemsSource="{Binding Value.posicaoProfissaoItems,ElementName=ucContratado, Mode=OneWay}"
                          SelectedIndex="{Binding Value.posicaoProfissional,Converter={StaticResource enumConverter}, ConverterParameter='PosicaoProfissao', ElementName=ucContratado,Mode=TwoWay}"/>
                </StackPanel>
                <TextBlock TextWrapping="Wrap" Text="*" FontFamily="Segoe UI" FontWeight="Bold" FontSize="21.333" Foreground="#FF307852" Height="16" VerticalAlignment="Top" Margin="0,0,3,0" d:LayoutOverrides="Width"/>
            </Grid>
            <Grid Height="53" Margin="0,0,6,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.024*"/>
                    <ColumnDefinition Width="0.976*"/>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.ColumnSpan="2" Margin="0" Grid.Row="2" Grid.Column="2">
                    <TextBlock TextWrapping="Wrap" Text="Tipo da Acomodação Autorizada:" FontFamily="Segoe UI" FontSize="13.333"/>
                    <ComboBox Width="180" Margin="0,6,0,0" SelectedValue="Key" DisplayMemberPath="Value" HorizontalAlignment="Left" 
                          ItemsSource="{Binding Value.acomodacaoItems,ElementName=ucContratado, Mode=OneWay}"
                          SelectedIndex="{Binding Value.tipoAcomodacao,Converter={StaticResource enumConverter}, ConverterParameter='TipoAcomodacao', ElementName=ucContratado,Mode=TwoWay}"/>
                </StackPanel>
            </Grid>
        </StackPanel>
    </Grid>
</UserControl>
